<div class="row">
	<div class="col-xs-4 col-md-4">
		<%= render "sidebar" ,user: @user%>
	</div>
	<div class="col-xs-8 col-md-8 ">

		<div class="panel panel-default">

			<div class="panel-body">

				<div class=" navbar nav" role="presentation">
					<%= render "menu"%>
					<div class="tabbable">
						<ul class="nav nav-tabs ">
							<li class="active"> <a href="#topics", data-toggle="tab">'热门话题'</a> </li>
							<li><a class="" href="#replies" data-toggle="tab">最近回帖</a></li>
							<li> <a class="" href="#self_info" data-toggle="tab">个人描述</a> </li>
						</ul>
						<div class="tab-content">
							<div class="tab-pane" id="topics">
									<ul class="list-group">
										<%@topics.each do |topic|%>
										<li class="list-group-item">
											<div class="title">
												<%= link_to topic.title,topic_path(topic)%>
											</div>
											<div class="info">
												<%= link_to topic.node.name,nodes_path%>
												<%= topic.likes_count%>个赞 .
												<%= topic.replies_count%>个回复
											</div>
										</li>
										<%end%>
									</ul>
							</div>

							<div class="tab-pane" id="replies">
								<%= render "replies", replies: @replies%>
							</div>
							<div class="tab-pane" id="self_info">
								<div class="panel-body">

								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<div class="panel-footer">

			</div>
		</div>
	</div>
</div>
